<div id="campaign">
	<div class="autores_header">
		<label><font color="#0431B4">
			CAMPAIGN INFORMATION
		</font></label>
	</div>
    <div id="addnewcampaign" style="text-align:center;">
        <br/>
    	<a href="javascript:campaignadd('autores/addnewcampaign.php','campaignadd','640','480','center','front');" class="btn btn--blue btn--m">
        Add New CAMPAIGN</a>
    <div>
    <div id="campaignlist" align="center">
    	<br />
        <br />
<?php    	include_once PATH."autores/campaignlist.php"; ?>
    </div>
    
</div>


<SCRIPT LANGUAGE='JAVASCRIPT' TYPE='TEXT/JAVASCRIPT'>
<!--
var campaignactivateWindow=null;
function campaignactivate(mypage,myname,w,h,pos,infocus){

if (pos == 'random')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';campaignactivateWindow=window.open('',myname,settings);
if(infocus=='front'){campaignactivateWindow.focus();campaignactivateWindow.location=mypage;}
if(infocus=='back'){campaignactivateWindow.blur();campaignactivateWindow.location=mypage;campaignactivateWindow.blur();}
}


var campaignaddWindow=null;
function campaignadd(mypage,myname,w,h,pos,infocus){

if (pos == 'random')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';campaignaddWindow=window.open('',myname,settings);
if(infocus=='front'){campaignaddWindow.focus();campaignaddWindow.location=mypage;}
if(infocus=='back'){campaignaddWindow.blur();campaignaddWindow.location=mypage;campaignaddWindow.blur();}
}

var campaigneditWindow=null;
function campaignedit(mypage,myname,w,h,pos,infocus){

if (pos == 'random')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';campaigneditWindow=window.open('',myname,settings);
if(infocus=='front'){campaigneditWindow.focus();campaigneditWindow.location=mypage;}
if(infocus=='back'){campaigneditWindow.blur();campaigneditWindow.location=mypage;campaigneditWindow.blur();}
}

var campaigndeleteWindow=null;
function campaigndelete(mypage,myname,w,h,pos,infocus){

if (pos == 'random')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';campaigndeleteWindow=window.open('',myname,settings);
if(infocus=='front'){campaigndeleteWindow.focus();campaigndeleteWindow.location=mypage;}
if(infocus=='back'){campaigndeleteWindow.blur();campaigndeleteWindow.location=mypage;campaigndeleteWindow.blur();}
}

var messageaddWindow=null;
function messageadd(mypage,myname,w,h,pos,infocus){
	
if (pos == 'random')
{LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
else
{LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
settings='width='+ w + ',height='+ h + ',top=' + TopPosition + ',left=' + LeftPosition + ',scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';messageaddWindow=window.open('',myname,settings);
if(infocus=='front'){messageaddWindow.focus();messageaddWindow.location=mypage;}
if(infocus=='back'){messageaddWindow.blur();messageaddWindow.location=mypage;messageaddWindow.blur();}
}

// -->
</script>